package com.mm.base.annotation;

import javax.ws.rs.NameBinding;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 描述: 接口幂等性注解-防止重复提交
 *
 * @author: yanglin
 * @Date: 2021-08-31-8:57
 * @Version: 1.0
 */
@NameBinding
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface AutoIdempotent {

    /**
     * 是否生效
     *
     * @return
     */
    boolean required() default true;

}
